file(GLOB_RECURSE SOURCES "*.cpp")

add_executable(test-transaction-scheduler ${SOURCES})
find_package(Boost REQUIRED serialization unit_test_framework)
find_package(FakeIt CONFIG REQUIRED)

target_link_libraries(test-transaction-scheduler
	transaction-scheduler
	${EXECUTOR_TARGET}
	${LEDGER_TARGET}
	${TARS_PROTOCOL_TARGET}
	${TABLE_TARGET}
	bcos-framework
	Boost::unit_test_framework
	FakeIt::FakeIt-boost
)
set_source_files_properties("main.cpp" PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
set_target_properties(test-transaction-scheduler PROPERTIES UNITY_BUILD "ON")
config_test_cases("" "${SOURCES}" "test-transaction-scheduler" "" "")
